package service;

import dao.UserInfoMapper;
import model.UserInfo;
import org.apache.ibatis.annotations.Param;
import utils.MyBatisUtil;

import java.util.List;

public class UseInfoService {
    private UserInfoMapper uim = MyBatisUtil.getSession().getMapper(UserInfoMapper.class);

    public List<UserInfo> findAll() {
        return uim.findAll();
    }

    public int insertUser(UserInfo u) {
        return uim.insertUser(u);
    }

    public int deleteUser(Integer id) {
        return uim.deleteUser(id);
    }

    public int updateUser(UserInfo u) {
        return uim.updateUser(u);
    }

}
